package com.zx.ishopping.services;

import com.zx.ishopping.VO.OrderItemsVo;
import com.zx.ishopping.entity.OrderItem;

import java.util.List;

public interface OrderItemsService {


    /**
     * 获取订单项列表
     * @param orderId
     * @return
     */
    List<OrderItemsVo> getOrderItemsList(Long orderId);

    /**
     * 添加订单项
     * @return
     */
    void addNum(Long id);

    /**
     * 减少订单项
     * @param id
     */
    void reduceNum(Long id);

    /**
     * 删除订单项
     * @param id
     */
    void deleteOrderItem(Long id);
}
